package com.eattravel.mapper;

import com.eattravel.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    List<User> findAllUser();

    User login(@Param("username")String username, @Param("userpsw")String pwd);

    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
     User findByUsername(String username);


    /**
     * 用户保存
     * @param user
     */
     void saveUser(User user);


    int updateUserInfo(User user);

}